package com.atguigu.demo;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.Map;

public class ExcelListener extends AnalysisEventListener<ReadDemoData> {
    //    从第二行开始读取
    @Override
    public void invoke(ReadDemoData readDemoData, AnalysisContext analysisContext) {
        System.err.println("数据为：" + readDemoData);
    }

    //     读取表头
    @Override
    public void invokeHeadMap(Map<Integer, String> headMap, AnalysisContext context) {
        System.err.println("表头:" + headMap);
    }

    //    读取完成之后做的
    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
